package com.ruoyi.car.mapstruct;

import com.ruoyi.car.controller.admin.carPaymentMethod.vo.CarPaymentMethodAddReq;
import com.ruoyi.car.controller.admin.carPaymentMethod.vo.CarPaymentMethodEditReq;
import com.ruoyi.car.controller.admin.carPaymentMethod.vo.CarPaymentMethodResp;
import com.ruoyi.car.entity.CarPaymentMethod;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author：流冬
 * @Package：com.ruoyi.car.mapstruct
 * @Project：RuoYi-Vue
 * @name：carPaymentMethodTo
 * @Date：2023/6/5 21:45
 * @Filename：carPaymentMethodTo
 * @Description
 */
@Mapper
public interface CarPaymentMethodTo {

    CarPaymentMethodTo INSTANCE= Mappers.getMapper(CarPaymentMethodTo.class);


    /**
     * 把List<CarModel> 转换为  List<CarModelResp>
     * @param list
     * @return
     */
    List<CarPaymentMethodResp> convert(List<CarPaymentMethod> list);

    /**
     * CarModelAddReq转换成实体类CarModel
     * @param req
     * @return
     */
    CarPaymentMethod convert(CarPaymentMethodAddReq req);

    /**
     * 转换
     * @param bean
     * @return
     */
    CarPaymentMethodResp convert(CarPaymentMethod bean);

    CarPaymentMethod  convert(CarPaymentMethodEditReq req);
}
